Protective Interface Speci cations
نویسندگان
چکیده
The interface speci cation of a procedure describes the procedure s behavior using pre and postconditions These pre and postconditions are written using various functions If some of these functions are partial or underspeci ed then the procedure speci cation may not be well de ned We show how to write pre and postcondition speci cations that avoid such problems by having the precondition protect the postcondition from the e ects of partiality and underspeci cation We formalize the notion of pro tection from partiality in the context of speci cation languages like VDM SL and COLD K We also formalize the notion of protection from underspeci ca tion for the Larch family of speci cation languages and for Larch show how one can prove that a procedure speci cation is protected from the e ects of underspeci cation
منابع مشابه
Compositional Minimization of Finite State Systems Using Interface Speciications
In this paper we present a method for the compositional construction of the minimal transition system that represents the semantics of a given distributed system. Our aim is to control the state explosion caused by the interleavings of actions of communicating parallel components by reduction steps that exploit global communication constraints given in terms of interface speci cations. The e ec...
متن کاملBehavioral Interface Speci cation Languages
Behavioral interface speci cation languages allow programmers to express the intended behavior of programs such as functional behavior and resource consumption. Formal speci cations of program behavior is useful for precise documentation, for the generation of test cases and test oracles, for debugging, and for formal program veri cation. In this paper, we survey behavioral interface speci cati...
متن کاملGuiding User Interfaces Equationally
Algebraic or equational speci cations are popular due to their simplicity. We advocate that such an approach could be of use for guiding user interfaces. If a user interface design process is to be accessible to a diverse user population that include novice computer users, it has to break out of the two stage user interface design| the rst stage, where a user interface builder is used to develo...
متن کاملA Quick Overview of Larch/C++
This paper gives a quick overview of Larch/C++, an interface speci cation language for C++. Through examples, we explain declarations, function speci cations, class speci cations, and template speci cations. An extended example is given in the last section. The reader is assumed to have some familiarity with C++. The reader should have some familiarity with the idea of formal speci cation, but ...
متن کاملAn Overview of Larch/C++: Behavioral Speci cations for C++ Modules
An overview is presented of the behavioral interface speci cation language Larch/C++. The features of Larch/C++ used to specify the behavior of C++ functions and classes, including subclasses, are described, with examples. Comparisons are made with other object-oriented specication languages. An innovation in Larch/C++ is the use of examples in function speci cations.
متن کامل